package com.frank.loadinglibrary.special.cool.letter;


import com.frank.loadinglibrary.special.cool.ball.CoolBall;
import ohos.agp.render.Canvas;

/**
 * Created by yanxing on 16/2/18.
 */
public abstract class Letter {

    protected float mCurX;
    protected float mCurY;
    protected int mDuration = 2000;
    protected AnimationCallBack animationCallBack;
    private float hs_x, hs_y;

    public Letter(float x, float y) {
        mCurX = x;
        mCurY = y;
        hs_x = x;
        hs_y = y;
    }

    public void startAnim() {

    }

    public void drawSelf(Canvas canvas) {

    }

    public void reset() {
        mCurX = hs_x;
        mCurY = hs_y;
    }

    public void setAnimationCallBack(AnimationCallBack animatorStateListen) {
        this.animationCallBack = animatorStateListen;
    }

    public interface AnimationCallBack {
        void onLetterAnimatorEnd();
    }
}
